package com.ccit.employee;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement        //开启事务支持(在service实现类上加@Transactional(rollbackFor = Exception.class)可以在报错时进行回滚)
@SpringBootApplication
@ComponentScan(basePackages = "com.ccit")
@EnableDiscoveryClient
@EnableScheduling
@EnableFeignClients(basePackages = "com.ccit.common.client")
public class ServiceEmployeeApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceEmployeeApplication.class, args);
    }
}
